$OpenBSD: patch-gcc_config_pa_pa_c,v 1.2 2013/06/07 07:54:23 pascal Exp $
--- gcc/config/pa/pa.c.orig	Thu Dec  6 03:19:48 2012
+++ gcc/config/pa/pa.c	Sat Apr 13 16:20:31 2013
@@ -3876,6 +3876,9 @@ hppa_expand_prologue (void)
   if (flag_stack_usage)
     current_function_static_stack_size = actual_fsize;
 
+  if (warn_stack_larger_than && actual_fsize > stack_larger_than_size)
+    warning (OPT_Wstack_larger_than_, "stack usage is %d bytes", actual_fsize);
+
   /* Compute a few things we will use often.  */
   tmpreg = gen_rtx_REG (word_mode, 1);
 
